﻿namespace Xushre.WeiBoSDK.API {
    /// <summary>
    /// 微博 OAuth2 认证接口
    /// </summary>
    public struct OAuth2 {
        /// <summary>
        /// OAuth2的authorize接口
        /// </summary>
        public static string AUTHORIZE = "https://api.weibo.com/oauth2/authorize";

        /// <summary>
        /// OAuth2的access_token接口
        /// </summary>
        public static string ACCESS_TOKEN = "https://api.weibo.com/oauth2/access_token";

        /// <summary>
        /// 授权信息查询接口
        /// </summary>
        public static string GET_TOKEN_INFO = "https://api.weibo.com/oauth2/get_token_info";

        /// <summary>
        /// 默认的授权页面，适用于web浏览器。
        /// </summary>
        public static string DISPLAY_DEFAULT = "default";

        /// <summary>
        /// 移动终端的授权页面，适用于支持html5的手机。
        /// </summary>
        public static string DISPLAY_MOBILE = "mobile";

        /// <summary>
        /// wap1.2的授权页面。
        /// </summary>
        public static string DISPLAY_WAP1 = "wap1.2";

        /// <summary>
        /// wap2.0的授权页面。
        /// </summary>
        public static string DISPLAY_WAP2 = "wap2.0";

        /// <summary>
        /// 默认的站内应用授权页，授权后不返回access_token，只刷新站内应用父框架。
        /// </summary>
        public static string DISPLAY_APPONWEIBO = "apponweibo";

        /// <summary>
        /// 请求的类型 authorization_code
        /// </summary>
        public static string GRANT_TYPE_CODE = "authorization_code";

        /// <summary>
        /// 请求的类型 password
        /// </summary>
        public static string GRANT_TYPE_PASSWORD = "password";

        /// <summary>
        /// 请求的类型 refresh_token
        /// </summary>
        public static string GRANT_TYPE_REFRESH = "refresh_token";
    }
}